/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package view;

import defaultPackage.Vector2;
import jplay.GameImage;
import jplay.Keyboard;
import jplay.Mouse;
import jplay.Window;

/**
 *
 * @author Marcel
 */
public class Screen {
    public static Screen instance;
    private Vector2 resolution;
    private Window window;
    
    private Screen (Vector2 res) {
        resolution = res;
        window = new Window ((int)res.getX(), (int)res.getY());
    }
    
    public static synchronized Screen create (Vector2 res) {
        if (instance == null) {
            return new Screen(res);
        }
        else {
            return instance;
        }
    }
    

    public Vector2 getResolution() {
        return resolution;
    }

    public void setResolution(Vector2 resolution) {
        this.resolution = resolution;
    }

    public Window getWindow() {
        return window;
    }

    public void setWindow(Window window) {
        this.window = window;
    }
    
}
